package com.example._02springbootsecurityoauth2.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Description:
 * @Date 2024/04/22 17:24
 * @Author songshaoqiu
 **/
@RestController
public class TestController {

    @GetMapping("/index")
    public Authentication index(Authentication authentication){
        return authentication;
    }

    @GetMapping("/helloworld")
    public String helloworld(){
        return "111";
    }
}
